package com.easy.util;

import com.easy.common.CommonResult;

public class PageUtil {
    private String message;
    private Object data;
    //    分页查询
    private int total;

    public static CommonResult success(Object data, int total) {
        CommonResult result = new CommonResult();
        result.setCode(200);
        result.setMessage("Success");
        result.setData(data);
        result.setTotal(total);
        return result;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
